<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			function count(year,month,day){
			            sum=0;
			            switch(month){
			                case 12:sum+=30;
			                case 11:sum+=31;
			                case 10:sum+=30;
			                case 9:sum+=31;
			                case 8:sum+=31;
			                case 7:sum+=30;
			                case 6:sum+=31;
			                case 5:sum+=30;
			                case 4:sum+=31;
			                case 3:{
			                    if(year%4==0&&year%100!=0||year%400==0)
			                        sum+=29;
			                    else
			                        sum+=28;
			                }
			                case 2:sum+=31;
			            }
			            sum+=day;
			            return sum;
			        }
			        document.write("今天是这一年的第"+count(2024,4,30)+"天")
		</script>
	</body>
</html>
